package com.cac.demo.dao.msAoMatchInfo;

import com.cac.demo.entity.msAoMatchInfo.MsAoMatchInfoDTO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Mapper
@Repository
public interface MsAoMatchInfoDao {

    //分拣配套页面查询
    public Page<HashMap> searchMsAoMatchInfoByPage(@Param("bean") HashMap map);

    //分拣配套数据新增
    public int insertInfoParams(@Param("map") Map map, @Param("msAoMatchInfoId") String msAoMatchInfoId);

    //id查询
    public MsAoMatchInfoDTO searchMsAoMatchInfoId(String msAoMatchInfoId);

    //按主键删除
    public int deleteBasic(String msAoMatchInfoId);

    //退库修改macth_info表退库数量，进行二次配套
    public int updateRetrunQty(@Param("map")HashMap map);

    //是否存在当前AO，任有物料未分拣
    public int isNoSortMaterail(@Param("map")Map map);

    //查询分拣台
    List<HashMap> querySortConsole();

    //查询工作台工作包
    List<HashMap> queryPackageByConsole(@Param("bean")Map bean);

    //查询工作台Ao
    List<HashMap> queryAoByConsole(@Param("map")Map map);

    //查询配套物料清单列表
    List<HashMap> queryMatchInfoByConsole(@Param("map")Map map);

    //查询工作台AO物料清单列表
    List<HashMap> queryMatchBillByConsole(@Param("map")Map map);

    List<HashMap> selectMaterial(@Param("map")HashMap map);

    HashMap queryProductByPackageId(@Param("map")HashMap map);

}
